﻿
/// <summary>
/// 为 BI.Win.Control.TreeNode 事件提供数据。
/// </summary>
/// <remarks></remarks>
using System.Drawing;

namespace Marmat.Forms
{
    public class PaintTreeNodeEventArgs
    {
        public PaintTreeNodeEventArgs(TreeNode Node, Graphics graphics, Rectangle clipRect)
        {
            this.m_Node = Node;
            this.m_Graphics = graphics;
            this.m_ClipRectangle = clipRect;
        }

        /// <summary>
    /// 获取用于进行绘制的图形。
    /// </summary>
    /// <value></value>
    /// <returns></returns>
    /// <remarks></remarks>
        public Graphics Graphics
        {
            get
            {
                return this.m_Graphics;
            }
        }

        private Graphics m_Graphics;
        /// <summary>
    /// 获取要在其中进行绘画的矩形。
    /// </summary>
    /// <value></value>
    /// <returns></returns>
    /// <remarks></remarks>
        public Rectangle ClipRectangle
        {
            get
            {
                return this.m_ClipRectangle;
            }
        }

        private Rectangle m_ClipRectangle;

        /// <summary>
    /// 整数型，用于设置矩形高度，单位为像素，如果设置为-1，表示使用默认高度。
    /// </summary>
    /// <value></value>
    /// <returns></returns>
    /// <remarks></remarks>
        public int Height
        {
            get
            {
                return this.m_Height;
            }

            set
            {
                this.m_Height = value;
            }
        }

        private int m_Height = -1;

        public TreeNode Node
        {
            get
            {
                return this.m_Node;
            }
        }

        private TreeNode m_Node;
    }
}